package cn.ainit.fx.jh;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ainit.fx.jh.entity.FxJh;
import cn.ainit.fx.jh.entity.FxJhItem;
import cn.ainit.yz.sprk.entity.Sprk;
import cn.ainit.yz.sprk.entity.SprkItem;

@Service
public class JhServiceImpl implements JhService{
	
	JhDao jhDao;
	
	@Resource
	public void setJhDao(JhDao jhDao) {
		this.jhDao = jhDao;
	}
	
	@Override
	public boolean saveFxJh(FxJh fxJh, List<FxJhItem> fxJhItems)
			throws Exception {
		return jhDao.saveFxJh(fxJh,fxJhItems);
	}
	@Override
	public boolean updateFxJh(FxJh fxJh, List<FxJhItem> fxJhItems)
			throws Exception {
		return jhDao.updateFxJh(fxJh,fxJhItems);
	}
	
	@Override
	public String execJhRuku(String jhId, String stockMan) throws Exception {
		return jhDao.execJhRuku(jhId, stockMan);
	}
	@Override
	public String execChengfu(String jhId, String finMan) throws Exception {
		return jhDao.execChengfu(jhId, finMan);
	}
	@Override
	public List<FxJh> daoHuoByMan(String manId) throws Exception {
		return jhDao.daoHuoByMan(manId);
	}
}
